import {lazy} from "react";
import {UserOutlined } from '@ant-design/icons'
import { lqyout } from '@/router/constant'
interface RouterMeta {
  key:string
}
export interface RouterRow {
  path:string,
  name:string,
  component:any,
  icon?:any,
  routes?:Array<RouterRow>;
  meta?:RouterMeta;
}
const routes:Array<RouterRow> = [
  {
    path:'/dashboard',
    name:"dashboard",
    component :lqyout,
    icon:UserOutlined,
    meta:{
      key:"dashboard"
    },
    routes:[
      {
        path:'/dashboard/dashboardIndex',
        name:"dashboardIndex",
        component :lazy(() => import("@/pages/dashboard/dashboardIndex")),
        meta:{
          key:"dashboard-dashboardIndex"
        },
      },
      {
        path:'/dashboard/dashboardTable',
        name:"dashboardTable",
        component :lazy(() => import("@/pages/dashboard/dashboardTable")),
        meta:{
          key:"dashboard-dashboardTable"
        },
      }
    ]


  }

]
export default routes
